package com.guifan.controller;

import com.guifan.inter.NotControllerResponseAdvice;
import com.guifan.vo.ProductInfoVo;
import com.guifan.vo.ResultVo;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author God.Jhon.Black
 * @date 2023-01-17
 */
@RestController
public class TestController {

    @PostMapping("/findByVo")
    @NotControllerResponseAdvice
    public String findByVo(@Validated @RequestBody ProductInfoVo vo) {
        return vo.getProductName();
    }

}
